﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;
using Alos.Common;
using Alos.IRepository;
using Alos.IService;
using PetaPoco;

namespace Alos.Service
{
    public class AssessmentCriteriaService : BaseService<AssessmentCriterium>, IAssessmentCriteriaService
    {
        IAssessmentCriteriaRepository AssessmentCriteriaRepository;
        public AssessmentCriteriaService(IAssessmentCriteriaRepository _AssessmentCriteriaRepository)
        {
            AssessmentCriteriaRepository = _AssessmentCriteriaRepository;
        }
        /// <summary>
        /// 根据教师ID获取已启用的用户指标
        /// </summary>
        /// <param name="TeacherId">教师ID</param>
        /// <returns></returns>
        public IEnumerable<dynamic> GetAssessmentCriteriaByTeacherId(int TeacherId, int Type)
        {
            return AssessmentCriteriaRepository.GetAssessmentCriteriaByTeacherId(TeacherId, Type);
        }
    }
}
